# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=remind
pkgver=04.02.08
pkgrel=0
pkgdesc="Sophisticated calendar and alarm program"
url="https://dianne.skoll.ca/projects/remind/"
arch="all"
license="GPL-2.0-only"
checkdepends="tzdata"
options="!check"
subpackages="$pkgname-doc tkremind::noarch"
source="https://dianne.skoll.ca/projects/remind/download/remind-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make -j1 test
}

package() {
	make DESTDIR="$pkgdir" install
}

tkremind() {
	depends="$pkgname=$pkgver-r$pkgrel tk tcl-lib"

	amove usr/bin/tkremind
}

sha512sums="
c09a69003d19f7b0cbebe98bb0fdae028ecbed1dc14b72b2447dfd120f82bcff149b5aa0b16c921ec45448731371f8e98a6d9080bd064a05eadf5b2df5abdb1e  remind-04.02.08.tar.gz
"
